package com.free.food.core.util;


import com.free.food.core.domain.ResultVO;

/**
 * 类功能描述：
 *
 * @author：刘富国
 * @createTime：2019-02-08 12:49
 */
public class ResultUtil {

    public static ResultVO success(Object data) {
        return new ResultVO(0, "成功!", data);
    }

    public static ResultVO success() {
        return new ResultVO(0, "成功！", null);
    }

    public static ResultVO fail() {
        return new ResultVO(1, "失败！", null);
    }

}
